package com.csun.cmny.provider.service;


import com.csun.cmny.provider.pojo.Building;
import com.csun.cmny.provider.pojo.SetMeal;

import java.util.List;
import java.util.Map;

public interface BuildingService {
    /**
     * 添加楼栋
     * author:liqian
     * date:2018-11-12 11:09
     */
    int insert(Building building);
    /**
     * 删除楼栋
     * author:liqian
     * date:2018-11-12 11:10
     */
    int deleteById(Integer buildingId);
    /**
     * 修改楼栋
     * author:liqian
     * date:2018-11-12 11:11
     */
    int updateById(Building building);
    /**
     * 根据楼栋d查询楼栋信息
     * author:liqian
     * date:2018-11-12 11:12
     */
    Building selectById(Integer buildingId);
    /**
     * 根据Building查询楼栋信息
     * author:liqian
     * date:2018-11-12 11:46
     */
    Building selectByBuilding(Building building1);
    /**
     * 查询该机构的所有楼栋信息——只是楼栋信息
     * author:liqian
     * date:2018-11-12 13:46
     */
    List<Building> showAll(Map<String,Object> queryMap);
    /**
     * 查询该机构的所有楼栋信息——包含房间、床位信息
     * author:liqian
     * date:2018-11-14 11:39
     */
    List<Building> showAlls(Building building);

    /**
     * 查询条数
     *
     * @param building
     *
     * @return the count.
     */
    int selectCount(Building building);
}
